package com.itheima.rpc.client.boot;

import com.itheima.rpc.client.discovery.RpcServiceDiscovery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @desc
 * @author:ivan.liu
 */
@Component
public class RpcClientRunner {

    @Autowired
    private RpcServiceDiscovery rpcServiceDiscovery;

    public void run() {
        //拉取注册信息到本地，进行缓存
        rpcServiceDiscovery.serviceDiscovery();
    }
}
